﻿using System;
using System.Collections.Generic;

namespace YJKRevitWndr
{
	public class DoorWinStatisticsResult
	{
		public string Name
		{
			get
			{
				return this.mName;
			}
		}

		public string Type
		{
			get
			{
				return this.mWidth.ToString() + "X" + this.mHeight.ToString();
			}
		}

		public string Height
		{
			get
			{
				return this.mHeight.ToString();
			}
		}

		public string Width
		{
			get
			{
				return this.mWidth.ToString();
			}
		}

		public double Quantity
		{
			get
			{
				return this.mQuantity;
			}
		}

		public string Unit
		{
			get
			{
				return this.mUnit;
			}
		}

		public string Commit
		{
			get
			{
				return this.sCommit;
			}
		}

		public string Level
		{
			get
			{
				return this.mLevel;
			}
		}

		public string Num
		{
			get
			{
				return this.mNum;
			}
		}

		static DoorWinStatisticsResult()
		{
			DoorWinStatisticsResult.dict.Add("族名", "Name");
			DoorWinStatisticsResult.dict.Add("规格", "Type");
			DoorWinStatisticsResult.dict.Add("宽度", "Width");
			DoorWinStatisticsResult.dict.Add("高度", "Height");
			DoorWinStatisticsResult.dict.Add("楼层", "Level");
			DoorWinStatisticsResult.dict.Add("数量", "Quantity");
			DoorWinStatisticsResult.dict.Add("单位", "Unit");
			DoorWinStatisticsResult.dict.Add("备注", "Commit");
			DoorWinStatisticsResult.dict.Add("编号", "Num");
		}

		public DoorWinStatisticsResult(string name, string level, double w, double h, double quantity, string unit, string num)
		{
			this.mLevel = level;
			this.mName = name;
			this.mHeight = h;
			this.mWidth = w;
			this.mQuantity = quantity;
			this.mUnit = unit;
			this.mNum = num;
		}

		public override string ToString()
		{
			return string.Format("{0},{1},{2},{3},{4}", new object[]
			{
				this.mName,
				this.Type,
				this.mQuantity,
				this.mUnit
			});
		}

		public static Dictionary<string, string> dict = new Dictionary<string, string>();

		private string mName;

		private double mHeight;

		private double mWidth;

		private double mQuantity;

		private string mUnit;

		private string sCommit;

		private string mLevel;

		private string mNum;
	}
}
